home *** CD-ROM | disk | FTP | other *** search
- DISCLAIMER: THIS PROGRAM IS RELEASED WITH NO GUARANTEES OR WARRANTIES
- OF ANY KIND. THE AUTHOR HAS MADE EVERY EFFORT TO TEST THE PROGRAM,
- BUT IS NOT RESPONSIBLE FOR ANY ERRATIC MACHINE BEHAVIOR BEFORE, DURING,
- OR AFTER PROGRAM EXECUTION.
-
- GIVE-UP - Releases clock cycles to the operating system under OS/2,
- Windows NT, Windows 95 and Windows for Workgroups 3.11.
-
- Improvements over original release:
- Improved loader section leaves only the interrupt service routines
- and their control data in memory, about 160 bytes.
- I now check the InDOS flag before releasing cycles. This eliminated
- almost all of the jerkiness of dir, and mouse operations, to name
- a few.
- Hooked the DOS Idle interrupt, 28h. Now eliminates those peskily
- tight DOS input loops.
-
- GIVE-UP works by hooking the MS-DOS timer interrupt, 1Ch, and
- keeping track of how many ticks have elapsed since the its last
- activation. When it is time to activate, it makes a call to Int
- 2Fh, Function 1680h, Release Current Virtual Machine Time Slice.
- I found that function call in "PC Interrupts", 2nd edition by
- Ralf Brown & Jim Kyle. This function call is recognized in DOS
- sessions under Windows for Workgroups, OS/2, Windows 95, and
- Windows NT.
-
- GIVE-UP was developed with Microsoft MASM 6.0a. I run GIVE-UP
- under OS/2 Warp, and have tested it with Windows NT Workstation
- 3.51, and the release version of Windows 95. There is no charge
- for using GIVE-UP. If you use the source code to create a derivative
- work, please let me know.
-
- USAGE - GIVE-UP [/XX]
- Where /XX is an optional number of click ticks ranging from 00-99.
- Please prefix all numbers less than 10 with a zero.
-
- By default, GIVE-UP activates every 4 ticks of the DOS timer
- interrupt, 1Ch. Passing /00 as the argument will cause it to
- activate every clock tick.
-
- EXAMPLES - GIVE-UP /00 -- Causes activation every clock tick
- GIVE-UP /06 -- Causes activation every 6 clock ticks
- or about 1/3 of a second.
- GIVE-UP /18 -- Causes activation every 18 clock ticks
- or about every second.
-
- A complete revision history is at the top of the source code.
-
- If you have any problems or suggestions, I can be reached on EXEC-PC
- or as ptrout@execpc.com or trout@cahs.colostate.edu
-
- Paul Trout -- 21 April, 1996
-